package com.migu.contacts.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import androidx.annotation.Nullable;

public class SelectImageView extends androidx.appcompat.widget.AppCompatImageView {
    public SelectImageView(Context context) {
        super(context);
    }

    public SelectImageView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public SelectImageView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                boolean selected = SelectImageView.this.isSelected();
            }
        });
    }
}
